package com.ijunfu.spring.applicationContext._02_aware;

import com.ijunfu.spring.applicationContext._02_aware.config.AppConfig;
import com.ijunfu.spring.applicationContext._02_aware.service.UserService;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 *
 * @Title  : 
 * @Author : ijunfu <ijunfu@163.com>
 * @Date   : 2023/11/11 14:18
 * @Version: 1.0
 * @Motto  : 世界很大 世界很小
 *
 */
@SpringBootApplication
public class AwareMain {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

        UserService userService = context.getBean(UserService.class);

        userService.print();
        userService.print();
        userService.print();
    }
}
